// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "Blueprint/UserWidget.h"
#include "AuraUserWidget.generated.h"

class UAuraWidgetController;
/**
 * 用户控件基类
 */
UCLASS(Blueprintable)
class AURA_API UAuraUserWidget : public UUserWidget
{
	GENERATED_BODY()
	
public:
	
	/** 控件的控制器 */
	UPROPERTY(BlueprintReadOnly)
	TObjectPtr<UObject> WidgetController;

	/** 设置器,设置控件的控制器 */
	UFUNCTION(BlueprintCallable)
	void SetWidgetController(UObject* InWidgetController);

	/** 控件设置控制器后回调*/
	UFUNCTION(BlueprintImplementableEvent)
	void OnWidgetControllerSet();

};
